﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>网站基本设置 - 修改注册会员信息</title>
<script src="/js/jquery.js" type="text/javascript"></script>
<script src="/js/jspublic.js" type="text/javascript"></script>
<script src="js/easyui/jquery.easyui.js" type="text/javascript"></script>
<script src="js/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<link href="style/right.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

    var uci = {hanshu:GetUserClassID@[id]};

	$(function(){
		
		if (window.frameElement == null) self.location = '/manage';
		
		levelChange();
        
		var count=$("#a_classid option").length;

	    for(var i=0;i<count;i++)
	    {
	        if($("#a_classid").get(0).options[i].value == uci)
	        {
	            $("#a_classid").get(0).options[i].selected = true;
	            break;
            }
	    }	
	});
	
	function levelChange()
	{
	    if ($("#u_level").val() == "1")
		{
			$("#haveParent").hide();
		}
		else
		{
			$("#haveParent").show();
		}
	}
</script>
</head>

<body>
<div class="zs_content">

	<div class="zs_quota">
		<h4>网站基本设置 - 修改注册会员信息</h4>
	</div>
	
	<div class="zs_sys">
		<form action="admin_update.aspx?T=b_user&id=[id]" method="post" name="form1" id="form1" enctype="multipart/form-data">
		<ul>
            {liebiao:B_user^0^u_id desc^u_id=[id]}
			<li>
				<label>用户名：</label>
				<div class="controls">
					{u_email}
				</div>
			</li>
			<li>
				<label>昵称：</label>
				<div class="controls">
					<input type="text" name="u_nickName" type="text" value="{u_nickName}" maxlength="50" />
				</div>
			</li>
			<li>
				<label>等级：</label>
				<div class="controls">
                    <select name="u_level" id="u_level" onchange="levelChange(this.value)" style="width:10em;">
						<option selected {ruguo:{u_level}==1}selected{fouze}{/ruguo} value="1"> 注册会员 </option>
						<option {ruguo:{u_level}==8}selected{fouze}{/ruguo} value="8"> 分类管理员 </option>
					</select>
				</div>
			</li>
			<li>
				<label>是否冻结：</label>
				<div class="controls">
					<label class="checkbox">
						<input name="u_ischeck" type="radio" value="1" {ruguo:{u_ischeck}==1}checked{fouze}{/ruguo} maxlength="50" /><span>是</span>
						<input name="u_ischeck" type="radio" value="0" {ruguo:{u_ischeck}==0}checked{fouze}{/ruguo} maxlength="50" /><span>否</span>
					</label>
				</div>				
			</li>
		    {/liebiao}
			<li id="haveParent">
				<label>管理分类：</label>
				<div class="controls">
					<select name="a_classid" id="a_classid">
                        {liebiao2:B_askClass^0^a_classid asc^a_classLevel=1}
                        <optgroup label="{<a_className>}">
                            {liebiao:B_askClass^0^a_classid asc^a_classLevel=2 and a_parentid={<a_classid>}}                            
                            <option value="{a_classid}">——{a_className}</option>
                            {/liebiao}{/liebiao2}
                        </optgroup>
                    </select>
				</div>
			</li>
			<li class="act">
				<label></label>
				<div class="controls">
					<input type="submit" id="Submit" name="Submit" value="修改" class="btn btn-primary" />
					<input type="button" id="back" name="back" value="返回" class="btn btn-primary" onclick="javascript:window.history.go(-1);" />
				</div>
			</li>
		</ul>
		</form>
	</div>
	
</div>
	
</body>
</html>